From ebf51a7f99a30f144e033a24b3e9e01c7c01b43b Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Fri, 1 May 2026 17:40:17 +0000 Subject: [PATCH] [PATCH 2/5] imap: Recreate multiplex ostream side channel after unhibernation This will be needed by the following changes to send dict_reset commands via the side channel. Gbp-Pq: Name 0002-imap-Recreate-multiplex-ostream-side-channel-after-u.patch --- src/imap/imap-state.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/imap/imap-state.c b/src/imap/imap-state.c index 3736296..fbd383d 100644 --- a/src/imap/imap-state.c +++ b/src/imap/imap-state.c @@ -723,6 +723,13 @@ import_state_compress(struct client *client, const unsigned char *data, *error_r = t_strdup_printf("Unknown COMPRESS handler %s", name); return 0; } + /* Recreate the side channel that cmd-compress would have created in + the previous (now-exited) imap process. It is used to forward + dict_reset commands back to the imap-login proxy after every tagged + reply. */ + if (client->multiplex_output != NULL && + client->side_channel_output == NULL) + client_create_side_channel_output(client); return p - data; } -- 2.39.5